import axios from "axios";

const instance = axios.create({
  //   baseURL: "http://125.69.65.36:21105",
  baseURL: "http://www.36nu.com/apiTest",
  //   baseURL: "http://192.168.1.218:21800",
  timeout: 8000,
});

instance.interceptors.request.use(
  (config) => {
    return config;
  },
  (err) => {
    console.log(err);
  }
);

instance.interceptors.response.use(
  (response) => {
    console.log("response", response);
    return response.data;
  },
  (error) => {
    console.log("响应错误", error);
  }
);

export default instance;
